home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / X11 / XTextWidth.z / XTextWidth
Encoding:
Text File  |  2002-10-03  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXTTTTeeeexxxxttttWWWWiiiiddddtttthhhh((((3333XXXX11111111))))   XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....6666))))    XXXXTTTTeeeexxxxttttWWWWiiiiddddtttthhhh((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XTextWidth, XTextWidth16 - compute text width
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           int XTextWidth(_f_o_n_t__s_t_r_u_c_t, _s_t_r_i_n_g, _c_o_u_n_t)
  13.                 XFontStruct *_f_o_n_t__s_t_r_u_c_t;
  14.                 char *_s_t_r_i_n_g;
  15.                 int _c_o_u_n_t;
  16.  
  17.           int XTextWidth16(_f_o_n_t__s_t_r_u_c_t, _s_t_r_i_n_g, _c_o_u_n_t)
  18.                 XFontStruct *_f_o_n_t__s_t_r_u_c_t;
  19.                 XChar2b *_s_t_r_i_n_g;
  20.                 int _c_o_u_n_t;
  21.  
  22.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  23.           _c_o_u_n_t     Specifies the character count in the specified
  24.                     string.
  25.  
  26.           _f_o_n_t__s_t_r_u_c_t
  27.                     Specifies the font used for the width computation.
  28.  
  29.           _s_t_r_i_n_g    Specifies the character string.
  30.  
  31.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  32.           The _X_T_e_x_t_W_i_d_t_h and _X_T_e_x_t_W_i_d_t_h_1_6 functions return the width
  33.           of the specified 8-bit or 2-byte character strings.
  34.  
  35.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.           XLoadFont(3X11), XTextExtents(3X11)
  37.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 10/3/02)
  64.  
  65.  
  66.  
  67.